package demo.xml;

import java.io.IOException;

import nsl.utils.UtilFile;

import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;

public class SpecialClass {
	static{
		String xmlPath="xml/log4j.xml";
		String absPath=UtilFile.getAbsPath(xmlPath);
		DOMConfigurator.configure(absPath);
	}
	static Logger logger = Logger.getLogger(SpecialClass.class);
	
	public static void main(String args[]) throws IOException {
		
		logger.debug("Here is some DEBUG");

		logger.info("Here is some INFO");

		logger.warn("Here is some WARN");

		logger.error("Here is some ERROR");

		logger.fatal("Here is some FATAL");

		}
}
